package com.sss.common.domain;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class Person {
    private String name;
    private boolean sex;
    private int age;
    private String[] interest;
    private List<String> address;
    private Map<String,Object> cardMap;
    private Person partner;

    public Person() {
        System.out.println("Person 已经构造对象");
    }

    public String getName() {
        return name;
    }

    public Person setName(String name) {
        this.name = name;
        return this;
    }

    public boolean isSex() {
        return sex;
    }

    public Person setSex(boolean sex) {
        this.sex = sex;
        return this;
    }

    public int getAge() {
        return age;
    }

    public Person setAge(int age) {
        this.age = age;
        return this;
    }

    public String[] getInterest() {
        return interest;
    }

    public Person setInterest(String[] interest) {
        this.interest = interest;
        return this;
    }

    public List<String> getAddress() {
        return address;
    }

    public Person setAddress(List<String> address) {
        this.address = address;
        return this;
    }

    public Map<String, Object> getCardMap() {
        return cardMap;
    }

    public Person setCardMap(Map<String, Object> cardMap) {
        this.cardMap = cardMap;
        return this;
    }

    public Person getPartner() {
        return partner;
    }

    public Person setPartner(Person partner) {
        this.partner = partner;
        return this;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", interest=" + Arrays.toString(interest) +
                ", address=" + address +
                ", cardMap=" + cardMap +
                ", \n partner=" + partner +
                '}';
    }
}
